package com.isoftstone.demo.global.service;

import com.isoftstone.demo.global.entity.Demo;
import com.isoftstone.services.data.service.JpaService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Demo服务
 *
 * @author TianGanLin
 * @version 1.0.0, 2017/11/24
 * @see com.isoftstone.demo.global.dao.DemoDao
 * @since 1.8
 */
public interface DemoService extends JpaService<Demo, Integer> {
    /**
     * 新增
     */
    Demo add(Demo patrol);

    /**
     * 获取
     */
    Demo get(Integer id);

    /**
     * 补充
     */
    Demo patch(Demo patrol);

    /**
     * 分页查询
     */
    Page<Demo> paging(Demo patrol, Pageable pageable);
}
